Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added background image of linear blend and foreground image of a sphere #3

Merged
merged 8 commits into from
Aug 9, 2024

Conversation

soumyasen1809
Copy link
Owner

  • Added basics of Rays, a Simple Camera, and Background

- Added a progress indicator to the output

%SOFTWARE
- Structured project with lib and main
- Added appropriate Cargo.toml files
- Implemented the Vector3 struct with necessary traits

%SOFTWARE
- Added Color struct to represent RGB
- Write pixel color to the standard output stream

%SOFTWARE
- Created a class for the Ray
- Added Point class
- Impl Add trait for Vec3 and Point

%SOFTWARE
-  Calculate the ray from the “eye” through the pixel
-  Create a blue gradient (linear blend)

%SOFTWARE
- Added coondition of intersection of ray with sphere

TODO: Fix the sphere not appearing

%SOFTWARE
- Fixed issue where red sphere not showing in the
ppm image.
- Error in calculating the location of upper left pixel

%SOFTWARE
Fixes #2
@soumyasen1809 soumyasen1809 added the enhancement New feature or request label Aug 9, 2024
@soumyasen1809 soumyasen1809 self-assigned this Aug 9, 2024
@soumyasen1809 soumyasen1809 merged commit 84315de into main Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant